package com.ruge.user.domain.model;

import com.ruge.core.domain.BaseDomain;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author ruge.wu
 * @since 2021/12/20 11:25
 */
@Getter
@Setter
@Builder
@Entity
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "user")
@org.hibernate.annotations.Table(appliesTo = "user", comment = "用户-基础数据")
public class User extends BaseDomain implements Serializable {
    @Column(columnDefinition = "varchar(100) comment '手机号'")
    private String mobile;
    @Column(columnDefinition = "varchar(100) comment '用户名'")
    private String userName;
    @Column(columnDefinition = "varchar(100) comment '昵称'")
    private String nickname;
    @Column(columnDefinition = "varchar(100) comment '密码'")
    private String password;
    @Column(columnDefinition = "varchar(100) comment '邮箱'")
    private String email;
    @Column(columnDefinition = "varchar(100) comment '头像'")
    private String avatarUrl;
    @Column(columnDefinition = "varchar(100) comment '角色'")
    private String roles;
}
